<?php
namespace app\manage\validate;

use think\Validate;

/**
 * 项目验证
 * Class Project
 * @package app\manage\validate
 */
class Activity extends Validate
{
    //定义验证规则
    protected $rule = [
        'name'  => 'require',
        'sort'=>'require',
        'date_start'=>'require|date',
        'date_end'=>'require|date',
        'time_start'=>'require',
        'time_end'=>'require',
    ];

    //定义验证提示
    protected $message = [
        'name.require' => '请输入活动名',
        'sort.require' => '请输入排序',
        'date_start.require' => '请输入排活动开始日期',
        'date_end.require' => '请输入活动结束日期',
        'time_start.require' => '请输入活动开始时间',
        'time_end.require' => '请输入活动结束时间',
    ];

}
